package ooday04;
//成员内部类的演示
public class InnerClassDemo {
    public static void main(String[] args) {
        Mama m = new Mama();
        //Baby b = new Baby(); //编译错误，内部类对外不具备可见性
    }
}

class Mama{
    String name;
    void show(){
        System.out.println(name); //简写
        System.out.println(Mama.this.name); //完整写法，Mama.this指代外部类对象
        System.out.println(this.name); //编译错误，this指代当前baby对象
    }
}
